From: Eric Fahlgren Date: Sun, 29 Jun 2025 17:26:32 +0000 (-0700) Subject: modules: dhcp: improve wording for DHCP reservations X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=3fc2644ac1f00a6d96d2d99d52a3f3729994e885;p=project%2Fluci.git modules: dhcp: improve wording for DHCP reservations The use of "static" regarding DHCP reservations can be misleading, as static usually implies a setting on the host device, where what we're actually doing is reserving the address on the server. Change the button label from "Set Static" to "Reserve IP" to more clearly indicate the action to be taken. Add some tip text to make it even more clear. Fixes: https://github.com/openwrt/luci/issues/7801 Signed-off-by: Eric Fahlgren --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js index 1cb923755d..61cfc62ac0 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js @@ -122,8 +122,9 @@ return baseclass.extend({ rows.push(E('button', { 'class': 'cbi-button cbi-button-apply', 'click': L.bind(this.handleCreateStaticLease, this, lease), + 'data-tooltip': _('Reserve a specific IP address for this device'), 'disabled': this.isMACStatic[mac] - }, [ _('Set Static') ])); + }, [ _('Reserve IP') ])); } return rows; @@ -171,8 +172,9 @@ return baseclass.extend({ rows.push(E('button', { 'class': 'cbi-button cbi-button-apply', 'click': L.bind(this.handleCreateStaticLease6, this, lease), + 'data-tooltip': _('Reserve a specific IP address for this device'), 'disabled': this.isDUIDStatic[duid] - }, [ _('Set Static') ])); + }, [ _('Reserve IP') ])); } return rows;